// sub_suzhou/pmarketingVisits/marketingVisits.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    scmdIsshow: false,
    zfqyIsshow: false,
    mdrlIsshow: false,
    isJs: false,
    sjtsIshow:false
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    this.getSjtsIshow()
  },
  getSjtsIshow(){
    let phoneList=['15921390309','13814994095','15256939740','17712266670','17826662496','15951717076','18368966620','19905129848','15295183717','15921390309','13814994095','17712266670','15051585333','15358811209']
    let userphone = wx.getStorageSync('userInfo').phone;
    console.log(userphone,'userphone')
    if(phoneList.includes(userphone)){
      this.setData({
        sjtsIshow:true
      })
    }
  },
  toWhere(e) {
    switch (e.currentTarget.dataset.id) {
      case '1':
          wx.navigateTo({
          url: '/sub_minsheng/limit/limit',
        })
        break;
      case '2':
        wx.navigateTo({
          url: "/sub_minsheng_sjts/sjts_page/sjts_page",
        })
        break;
      default:
        break;
    }
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})